package com.appleword.biz.book.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.appleword.common.annotation.Excel;
import com.appleword.common.core.domain.BaseEntity;

/**
 * 书对象 appleword_book
 * 
 * @author apple
 * @date 2024-05-13
 */
public class ApplewordBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 分组ID */
    @Excel(name = "分组ID")
    private Long groupId;

    /** 书名 */
    @Excel(name = "书名")
    private String bookName;

    /** 图片 */
    @Excel(name = "图片")
    private String bookImage;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 文章信息 */
    private List<ApplewordArticle> applewordArticleList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }
    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }
    public void setBookImage(String bookImage) 
    {
        this.bookImage = bookImage;
    }

    public String getBookImage() 
    {
        return bookImage;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public List<ApplewordArticle> getApplewordArticleList()
    {
        return applewordArticleList;
    }

    public void setApplewordArticleList(List<ApplewordArticle> applewordArticleList)
    {
        this.applewordArticleList = applewordArticleList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupId", getGroupId())
            .append("bookName", getBookName())
            .append("bookImage", getBookImage())
            .append("updatedTime", getUpdatedTime())
            .append("createdTime", getCreatedTime())
            .append("applewordArticleList", getApplewordArticleList())
            .toString();
    }
}